package com.ruoyi.datastatistics.wxentity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
@Data
public class WXTerminalsFreezeXb {
    private static final long serialVersionUID = 1L;

    /** 平台表单自增主键 */
    @TableId
    @JsonProperty("ID")
    private Long ID;

    /** 设备归属租户 */
//    @Excel(name = "设备归属租户")
    private String tenantId;


    @TableField(exist = false)
    @Excel(name = "楼栋名称")
    private String ldName;

    @TableField(exist = false)
    @Excel(name = "用户名称")
    private String userName;


    @TableField(exist = false)
    @Excel(name = "用户编号")
    private String userId;

    @TableField(exist = false)
    @Excel(name = "门牌号")
    private String roomName;

    /** 设备编号 */
    @Excel(name = "设备编号")
    @JsonProperty("TerminalID")
    private String TerminalID;

    @Excel(name = "通讯地址")
    @TableField(exist = false)
    private String communicateAddress;


    /** 冻结时间（日/月） */
    @Excel(name = "冻结时间")
    @JsonProperty("FreezeTime")
    private String FreezeTime;

    /** 厂家编号 */
    @JsonProperty("SupplierID")
    @Excel(name = "厂家名称")
    private Long SupplierID;

    /** 净累积量 */
    @Excel(name = "净累积量")
    @JsonProperty("cumulativeFlow")
    private BigDecimal cumulative_flow;

    /** 平均电池电压 */
    @Excel(name = "平均电池电压")
    private BigDecimal terminalvolAvg;

    /** 起始抄表读数 */
    @Excel(name = "起始抄表读数")
    @JsonProperty("StartReading")
    private BigDecimal StartReading;

    /** 起始抄表时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "起始抄表时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonProperty("StartReadingtime")
    private Date StartReadingtime;

    /** 终止抄表读数 */
    @Excel(name = "终止抄表读数")
    @JsonProperty("EndReading")
    private BigDecimal EndReading;

    /** 终止抄表时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "终止抄表时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonProperty("EndReadingtime")
    private Date EndReadingtime;

    /** 用户平均用水量 */
    @Excel(name = "用户平均用水量（m³）")
    private String userAvg;

    /** 环比上一周期 */
    @Excel(name = "环比上一周期")
    private String hb;

    /** 用水状态，报警策略设置的参数计算 */
    @Excel(name = "用水状态，报警策略设置的参数计算")
    @JsonProperty("ParamType")
    private Long ParamType;

    /** 冻结类型，日：day，月：month */
    @Excel(name = "冻结类型",readConverterExp = "day=日冻结,month=月冻结")
    @JsonProperty("frozenType")
    private String frozen_type;


    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
//    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonProperty("CreateDate")
    private Date CreateDate;


    @TableField(exist = false)
    private String treeRoomId;




    @TableField(exist = false)
    private String belongDepartment;

    @TableField(exist = false)
    private String treeAreaCode;


    @TableField(exist = false)
    private String treeLdId;


    @TableField(exist = false)
    private String installAddress;
}
